View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001275 | K18X001.00 SKB SWAN | SW Issue | public | 2021-06-10 12:06 | 2021-08-18 15:20 |
| Reporter | Assigned To | (ALTech) Wooshin Kang | Due Date | ||
| Priority | normal | Severity | s2-severe | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Summary | 0001275: [SWAN][Audio Routing] BT SINK audio is not output when leaving Karaoke app | ||||
| Description | Hi Wooshin, According to the test result of item 20 (BT sink+Karaoke) and item 36 (BT sink+Karaoke+Passthrough) in https://docs.google.com/spreadsheets/d/1nPiuVKMs_0e9Ez2uPAt4obq8KocPfh9vXX1trCpG4sw/edit#gid=325589293 . I can reproduce you reported issue that BT sink audio is not output to speaker after leaving Karaoke app. I found this issue is related to com.skb.google.tv.global.STBGlobal app. When we leave karaoke app to Home UI, this app will run. And this app will use requestAudioFocus() to request audio focus and cause the BT sink to abandon focus and stop output audio. You can check the log below. Please help to check with the owner of this app to fix it. I also did a test to leave Karaoke app by using command "am start -a android.settings.SETTINGS". And BT sink audio will success to output audio to speaker after leaving karaoke app because STBGlobal app is not running in this case. | ||||
| Steps To Reproduce | 1.Connect BT Mobile phone to SWAN and play youtube music in Mobile phone. 2.In SWAN, enter Karaoke app, Mobile audio will not output to speaker. 3.Use "Home" key of RCU to leave Karaoke app to home UI and keep Mobile phone playing music. 4.The Mobile audio is not output to speaker. PS: If you remove Youtube app of Mobile phone and restart to Youtube of Mobile phone to play music again, Mobile phone can output audio to Speaker without problem. | ||||
| Additional Information | The following logs are captured when leaving karaoke app in above Step3 of "Steps To Reproduce": ================================================================================ TVSManager: requestAudioFocus() AVControlManager: BTF|requestAudioFocus|359|IN| AudioMixer::requestAudioFocus mContext : com.skb.google.tv.global.STBGlobal@89238c8, focusRequest : android.media.AudioFocusRequest@87f2b32 MediaFocusControl: requestAudioFocus() from uid/pid 1000/1737 clientId=android.media.AudioManager@8ecec8dcom.skb.google.tv.global.AudioFocusManager$1@f01de42 callingPack=com.skb.tv req=1 flags=0x0 sdk=29 AudioManager: dispatching onAudioFocusChange(-1) to android.media.AudioManager@9bc7f9bcom.android.bluetooth.a2dpsink.A2dpSinkStreamHandler$1@105bf38 AVControlManager: BTF|requestAudioFocus|365|OUT| AudioMixer::requestAudioFocus return : 1 TVSManager: requestAudioFocus() 1 MediaFocusControl: abandonAudioFocus() from uid/pid 1002/953 clientId=android.media.AudioManager@9bc7f9bcom.android.bluetooth.a2dpsink.A2dpSinkStreamHandler$1@105bf38 | ||||
| Tags | No tags attached. | ||||
| Attach Tags | |||||
|
|
Let me check it and i will update. |
|
|
Hi Wooshin, FYI. When you stay at live channel and mobile phone is playing, then you press RCU "Home" key to back to HOME UI. The mobile phone audio will also not output to Speaker. This is the same root cause that com.skb.google.tv.global.STBGlobal call requestAudioFocus(). |
|
|
Attached the ppt file that we will discuss with SPTEK. PS: we try added back the handleSKBStreamAndDevice() as AI2 did. But find some issues and need SPTEK to check what is current design and how to cowork with SPTEK to implement as AI2 did. |
|
|
Conclusion for 7/13 ALT/SPTEK/FII meeting to discuss bt_sink mode Audio routing issue: 1.bt sink sets to NUGU stream type. 2.bt sink should ignore audio focus loss. 3.We need to send "bt_sink" intent to broadcastReceiver of AudioServer to control mute/unmute of MUSIC Stream type. 4.When Google Assistant is triggered, we send sent "bt_sink" enable=0 intent. 5.Base on fix of AVRCP to do test,and discuss the side-effect and fail case in 7/16 pm4:00 metting with SPTEK/ALT. |
|
|
Hi Wooshin, I got some test results after change code as mentioned in 1~4 of 0001275:0007669. These issues are list in https://docs.google.com/spreadsheets/d/1wodDz__7R-078xPrgdVgPEoV1nokpRj_gQM3d2AqOwY/edit#gid=0 There are 9 issues and I think most of them are related to SPtek code in AudioService to control mute/unmute of different situation (WFE,Karaoke,NUGU,passthrough). Please have SPtek's help to fix these issues. PS. I already committed 1~4 modification to v5.3.1 branch . I think SPtek can continue to debug by sync today' code. |
|
|
Hi Wooshin, I enable the write privilege of the google excel of issue list. I also copy and past the SPTek responses on it. You can now direct update it now. |
|
|
Hi Wooshin, After verified all issues with SPTeck 's fixes, there are two issues left. Please see my update in https://docs.google.com/spreadsheets/d/1wodDz__7R-078xPrgdVgPEoV1nokpRj_gQM3d2AqOwY/edit#gid=0 Please have SPTeck to check issue 5 again with the new Reproduce Steps. It is still fail. Issue 5. Switch between passthrough mode and non-passthrough mode, MUSIC stream will be unmuted. For issue "3.After NUGU, BT sink is not play.". I also update my comment in the google excel. I think the app sending "com.skbb.intent.action.NUGU_BT_CTRL_REQUEST" should notify SPTsk's SptekBluetoothAvrcpService to send "play" avrcp command after nugu is end. Please help to check with SPTek which app sends ""com.skbb.intent.action.NUGU_BT_CTRL_REQUEST" to them. |
|
|
Hi Wooshin, For today's meeting, I prepare a ppt file for Issue "3.After NUGU, BT sink is not play." and why Google Assistant can not always output to Speaker as NUGU does. |
|
|
Hi Wooshin, Issue "3.After NUGU, BT sink is not play." Test result of the following cases: 1.BT sink play -> NUGU to play music -> BT sink is paused and Music is playing -> After exit Music, BT sink plays again. 2.BT sink play -> Play YouTube -> NUGU to play music -> BT sink is paused and Music is playing -> After exit Music, BT sink is still paused. Issue 5. Switch between passthrough mode and non-passthrough mode, MUSIC stream will be unmuted. >> Verify SPTek's fix and now it is ok. |
|
|
After close, I will reopen if any issue will be founded. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2021-06-10 12:06 |
|
New Issue | |
| 2021-06-10 12:06 |
|
Status | new => assigned |
| 2021-06-10 12:06 |
|
Assigned To | => (ALTech) Wooshin Kang |
| 2021-06-10 12:16 |
|
Additional Information Updated | |
| 2021-06-10 14:34 | (ALTech) Wooshin Kang | Note Added: 0007429 | |
| 2021-06-11 14:55 |
|
Note Added: 0007442 | |
| 2021-07-12 13:45 |
|
File Added: AudioRoutint_for_BT_Sink_issues.pptx | |
| 2021-07-12 13:45 |
|
Note Added: 0007648 | |
| 2021-07-13 15:38 |
|
Note Added: 0007669 | |
| 2021-07-16 09:16 |
|
Note Added: 0007688 | |
| 2021-07-16 14:45 |
|
Note Added: 0007689 | |
| 2021-07-17 00:13 |
|
Note Added: 0007691 | |
| 2021-07-18 13:14 |
|
Note Edited: 0007691 | |
| 2021-07-19 11:37 |
|
File Added: AudioRoutint_for_BT_Sink_issues_NUGU_GoogleAssistant.pptx | |
| 2021-07-19 11:37 |
|
Note Added: 0007693 | |
| 2021-07-19 18:15 |
|
Note Added: 0007697 | |
| 2021-08-18 15:20 | (ALTech) Wooshin Kang | Status | assigned => closed |
| 2021-08-18 15:20 | (ALTech) Wooshin Kang | Resolution | open => fixed |
| 2021-08-18 15:20 | (ALTech) Wooshin Kang | Note Added: 0007899 |